home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C# & Game Programming - A…er's Guide (2nd Edition)
/
Buono 2nd Ed.iso
/
Chapter2
/
2.14
/
2.14.cs
next >
Wrap
Text File
|
2004-08-31
|
589b
|
19 lines
/* Hey, you broke my while loop! */
using System;
namespace Chapter2 {
class Class1 {
static void Main() {
string Quit = "no";
while (Quit != "yes") {
break; // breaks loop
Console.Write ("\n Would you like to end this loop? ");
Quit = Console.ReadLine ();
}
Console.WriteLine ("Program complete!\n");
}
}
}